package com.itmuch.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.feign.FeignClient;



/*
 * Feign的使用：
 * 	  1.在Maven配置依赖包
 *    2.在主类添加注解@EnableFeignClients
 * 	  3.创建一个接口：UsedrFeignClient.java	
 * 	  4.在接口上添加注解@FeignClient("microservice-provider-user")	
 * 
 * */

@EnableEurekaClient
@SpringBootApplication
@EnableFeignClients
public class ConsumeFeignApplication {
	public static void main(String[] args) {
		SpringApplication.run(ConsumeFeignApplication.class, args);
	}
}
